package com.muyi.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName comment
 */
@TableName(value ="comment")
@Data
public class Comment implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer comment_id;

    /**
     * 
     */
    private Integer paper_id;

    /**
     * 
     */
    private Integer user_id;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date publish_date;

    /**
     * 
     */
    private Integer like_count;

    /**
     * 
     */
    private Integer favorite_count;

    /**
     * 
     */
    private String content;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}